package com.imay.live.analytics;

import android.content.Context;

import com.imay.live.BuildConfig;


/**
 * 考虑将来是否替换其他SDK统计
 * Created by lzx on 2017/06/13 0013.
 */

public class MobclickAgent {
    static boolean isAllow() {
        return BuildConfig.IS_RELEASE;
    }

    public static void onResume(Context var0) {
        if (!isAllow()) {
            return;
        }
        com.umeng.analytics.MobclickAgent.onResume(var0);
    }

    public static void onPause(Context var0) {
        if (!isAllow()) {
            return;
        }
        com.umeng.analytics.MobclickAgent.onPause(var0);
    }

    public static void onEvent(Context var0, String eventId) {
        if (!isAllow()) {
            return;
        }
        com.umeng.analytics.MobclickAgent.onEvent(var0, eventId);
    }

    public static void onPageStart(String eventId) {
        if (!isAllow()) {
            return;
        }
        com.umeng.analytics.MobclickAgent.onPageStart(eventId);
    }

    public static void onPageEnd(String eventId) {
        if (!isAllow()) {
            return;
        }
        com.umeng.analytics.MobclickAgent.onPageEnd(eventId);
    }

    public static void onProfileSignIn(String userID) {
        if (!isAllow()) {
            return;
        }
        com.umeng.analytics.MobclickAgent.onProfileSignIn(userID);
    }

    public static void onProfileSignIn(String Provider, String ID) {
        if (!isAllow()) {
            return;
        }
        com.umeng.analytics.MobclickAgent.onProfileSignIn(Provider, ID);
    }

    public static void onProfileSignOff() {
        if (!isAllow()) {
            return;
        }
        com.umeng.analytics.MobclickAgent.onProfileSignOff();
    }
}
